<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">    
    <form class="well form-inline margin-top-20" method="post" action="{:url('Statis/store')}">
        品牌:
        <select class="form-control" name="brandid" style="width: 140px;">
          <option value='0'>全部</option>
          <foreach name="brand" item="v" key='k'>
          <option value='{$v.id}'>{$v.name}</option>
          </foreach>
        </select> &nbsp;&nbsp;
          店铺名称：
           <input type="text"  class="form-control" name="store_name"  value="">
        <!-- 时间:
        <input type="text" class="form-control js-bootstrap-date" name="start_time" id="start_time" value="{:input('request.start_time')}" style="width: 140px;" autocomplete="off">-
		<input type="text" class="form-control js-bootstrap-date" name="end_time" id="end_time" value="{:input('request.end_time')}" style="width: 140px;" autocomplete="off"> &nbsp; &nbsp; -->
        <!-- 关键字:
        <input type="text" class="form-control" name="keyword" style="width: 200px;"
               value="{$keyword|default=''}" placeholder="请输入关键字..."> -->
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('Statis/store')}">清空</a>
    </form>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>                
                <th>编号</th>                
                <th>店名</th>
                <th>品牌</th>
                <th>操作</th>
            </tr>
            </thead>
            <foreach name="store_list" item="vo" key='k'>
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.store_name}</td>
                    <td>{:getbrand($vo['brandid'],'name')}</td>
                    <td>
                    <a href="javascript:parent.openIframeLayer('{:url('Statis/slist',array('storeid'=>$vo['id']))}','店铺营业额统计',{});">店铺营业额统计</a>
                    <a href="javascript:parent.openIframeLayer('{:url('Single/slist',array('storeid'=>$vo['id']))}','商品汇总',{});">商品汇总</a>
                    <a href="javascript:parent.openIframeLayer('{:url('order_admin/index',array('storeid'=>$vo['id']))}','订单明细',{});">订单明细</a>
                    </td>
                </tr>
            </foreach>
        </table>
        <ul class="pagination">{$page}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>